/* Layout */
const Layout = resolve => require(['@/views/layout/Layout'], resolve);

const ExamRouterMap = {
  id: 153,
  path: '/exam',
  component: Layout,
  name: '考试培训',
  redirect: '/exam/statistics',
  meta: {title: '考试培训', icon: 'questionnaire', power: 'exam'},
  alwaysShow: true,
  showMode: 'DEFAULT',
  children: [
    {
      id: 155,
      path: 'statistics',
      name: '考试统计数据',
      component: resolve => require(['@/views/plugins/exam/statistics'], resolve),
      meta: {title: '统计数据', icon: 'orderlist', power: 'exam.statistics'}
    }, {
      id: 156,
      path: 'analysis',
      name: '试题分析',
      component: resolve => require(['@/views/plugins/exam/analysis'], resolve),
      meta: {title: '试题分析', icon: 'orderlist', power: 'exam.analysis'}
    },
    /**
     * 考试管理
     */
    {
      id: 157,
      path: 'examList',
      name: '考试管理',
      component: resolve => require(['@/views/plugins/exam/examList/list'], resolve),
      meta: {title: '考试管理', icon: 'orderlist', power: 'exam.list'}
    }, {
      id: 158,
      path: 'create',
      name: '创建考试',
      component: resolve => require(['@/views/plugins/exam/examList/create'], resolve),
      meta: {title: '创建考试', power: 'exam.create'},
      hidden: true
    }, {
      path: 'examInfo',
      name: '考试详情',
      component: resolve => require(['@/views/plugins/exam/examList/info'], resolve),
      meta: {title: '考试详情', icon: 'orderlist', power: 'exam.info'},
      hidden: true
    }, {
      id: 190,
      path: 'answerSheet',
      name: '答卷列表',
      component: resolve => require(['@/views/plugins/exam/examList/answerSheet'], resolve),
      meta: {title: '答卷列表', icon: 'orderlist', power: 'exam.answerSheet'},
      hidden: true
    }, {
      id: 190,
      path: 'answerSheetDetails',
      name: '考试-答卷详情',
      component: resolve => require(['@/views/plugins/exam/examList/answerSheetDetails'], resolve),
      meta: {title: '答卷详情', icon: 'orderlist', power: 'exam.answerSheetDetails'},
      hidden: true
    },
    /**
     * 考生管理
     */
    {
      id: 159,
      path: 'examinee',
      name: '考生管理',
      component: resolve => require(['@/views/plugins/exam/examinee/list'], resolve),
      meta: {title: '考生管理', icon: 'orderlist', power: 'exam.examinee'}
    }, {
      id: 193,
      path: 'examineeTeam',
      name: '考生分组',
      component: resolve => require(['@/views/plugins/exam/examinee/team'], resolve),
      meta: {title: '分组管理', icon: 'orderlist', power: 'exam.examineeTeam'},
      hidden: true
    },
    /**
     * 试卷管理
     */
    {
      id: 173,
      path: 'examPaper',
      name: '试卷管理',
      component: resolve => require(['@/views/plugins/exam/examPaper/list'], resolve),
      meta: {title: '试卷管理', icon: 'orderlist', power: 'exam.examPaper'}
    }, {
      id: 198,
      path: 'examPaperType',
      name: '试卷分类管理',
      component: resolve => require(['@/views/plugins/exam/examPaper/type'], resolve),
      meta: {title: '试卷分类管理', icon: 'orderlist', power: 'exam.examPaperType'},
      hidden: true
    }, {
      id: 197,
      path: 'examPaperQuestions',
      name: '试卷题目管理',
      component: resolve => require(['@/views/plugins/exam/examPaper/questions'], resolve),
      meta: {title: '试卷题目管理', icon: 'orderlist', power: 'exam.examPaperQuestions'},
      hidden: true
    }, {
      id: 197,
      path: 'addFromQuestion',
      name: '从题库中选择',
      component: resolve => require(['@/views/plugins/exam/examPaper/questionList'], resolve),
      meta: {title: '从题库中选择', icon: 'orderlist', power: 'exam.addFromQuestion'},
      hidden: true
    },
    /**
     * 题库管理
     */
    {
      id: 172,
      path: 'examQuestions',
      name: '题库管理',
      component: resolve => require(['@/views/plugins/exam/questions/list'], resolve),
      meta: {title: '题库管理', icon: 'orderlist', power: 'exam.examQuestions'}
    }, {
      id: 172,
      path: 'createQuestion',
      name: '添加题目',
      component: resolve => require(['@/views/plugins/exam/questions/create'], resolve),
      meta: {title: '添加题目', icon: 'orderlist', power: 'exam.createQuestion'},
      hidden: true
    }, {
      id: 172,
      path: 'modifyQuestion',
      name: '编辑题目',
      component: resolve => require(['@/views/plugins/exam/questions/modify'], resolve),
      meta: {title: '编辑题目', icon: 'orderlist', power: 'exam.modifyQuestion'},
      hidden: true
    }, {
      id: 172,
      path: 'questionDetails',
      name: '题目详情',
      component: resolve => require(['@/views/plugins/exam/questions/info'], resolve),
      meta: {title: '题目详情', icon: 'orderlist', power: 'exam.questionDetails'},
      hidden: true
    }
  ]
}

export default ExamRouterMap;
